package llama.ctrl;

import llama.core.ChatModelLocator;
import llama.core.Contact;
import llama.core.IUser;
import llama.network.NetworkMessage;
import llama.network.NetworkMessage.Type;

public class AssignTagsCtrl implements IController{

	private Contact contact;
	
	@Override
	public void execute() {
		System.out.println("AssignTagsCtrl");
		ChatModelLocator.getChatModel().send(new NetworkMessage(contact, Type.ASSIGN_TAG));
	}

	public void assignTag(IUser iUser, String tag) {
		contact = new Contact(iUser, tag);
	}
}
